import math
x = eval(input('请输入x的值:'))
y = eval(input('请输入y的值:'))
z = eval(input('请输入z的值:'))
if x <= 250 and y <=100 and z <= 50:
    print('本月应交58')
else:
    cost = math.ceil (x-250)*0.25+(y-100)*0.1+(z-50)*0.3
    print('本月应交{}'.format(cost))
